package com.esri.core.internal.tasks.f;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.Map;
import java.util.concurrent.atomic.AtomicInteger;

/* loaded from: classes.dex */
class b implements Iterator<Object> {
    AtomicInteger a = new AtomicInteger(0);
    private ArrayList<Map<String, Object>> b;

    public b(ArrayList<Map<String, Object>> arrayList) {
        this.b = null;
        if (arrayList == null) {
            throw new RuntimeException("features cannot be null");
        }
        this.b = arrayList;
    }

    public int a() {
        return this.b.size();
    }

    @Override // java.util.Iterator
    public boolean hasNext() {
        return this.a.get() < a();
    }

    @Override // java.util.Iterator
    /* renamed from: b */
    public Map<String, Object> next() {
        Map<String, Object> map;
        Exception e;
        try {
            map = this.b.get(this.a.get());
            try {
                this.a.incrementAndGet();
            } catch (Exception e2) {
                e = e2;
                e.printStackTrace();
                return map;
            }
        } catch (Exception e3) {
            map = null;
            e = e3;
        }
        return map;
    }

    @Override // java.util.Iterator
    public void remove() {
        throw new UnsupportedOperationException();
    }
}
